@if (count($labs))

<div class="row">

  @foreach ($labs as $lab)
  <div class="col-sm-6 col-md-3">
    <div class="thumbnail">
      <a href="{{ route('labs.show', [$lab->id]) }}">
        <img src="/assets/images/mooc.jpg" alt="{{$lab->title}}">
        <div class="caption">
          <h4>{{$lab->title}}</h4>
          <p>{{$lab->description}}</p>
        </div>
      </a>
      <div class="media-body meta">

        <a href="{{ route('nodes.show', [$lab->node->id]) }}" title="{{{ $lab->node->name }}}" {{ $lab->vote_count == 0 || 'class="remove-padding-left"'}}>
            {{{ $lab->node->name }}}
        </a>

        @if ($lab->vote_count >= 0)
          <span> • </span>
          <a href="{{ route('labs.show', [$lab->id]) }}" class="remove-padding-left" id="pin-{{ $lab->id }}">
            <span class="fa fa-thumbs-o-up"> {{ $lab->vote_count }} </span>
          </a>
        @endif

        @if ($lab->view_count >= 0)
          <span> • </span>
          <a href="{{ route('labs.show', [$lab->id]) }}" class="remove-padding-left" id="pin-{{ $lab->id }}">
            <span class="fa fa-eye"> {{ $lab->view_count }} </span>
          </a>
        @endif

      </div>
    </div>
  </div>
  @endforeach

</div>

@else
   <div class="empty-block">{{ lang('Dont have any lab Yet') }}~~</div>
@endif
